/**
 * 
 */
package org.dbwebx.gwt.widget.application;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author Izzet_Mustafayev
 * 
 */
public class ApplicationPanel extends Composite {

	public static final String STYLE_NAME = "dbwebx-application-panel";

	private TabPanel applicationPanel = new TabPanel();

	/**
	 * 
	 */
	public ApplicationPanel() {
		super();
		// should call according to contract
		initWidget(applicationPanel);
		setStyleName(STYLE_NAME);
	}

	public void addTab(final Widget tab, final String tabName) {
		applicationPanel.add(tab, tabName);
	}

	public void selectedTab(final int index) {
		applicationPanel.selectTab(index);
	}

}
